import { createApp } from 'vue'
import router from './router'
import store from './store'
import App from './App.vue'

//引入element-plus组件
// import store from './store'
import pinia from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 引入 dayjs 中的国际化中文文案
import 'dayjs/locale/zh-cn'

//引入重置样式表
import 'normalize.css'
import './permission'

const app = createApp(App)
// 全局注册 element-plus 中使用的 icon 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
 app.component(key, component)
}
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(pinia)
app.use(ElementPlus)
app.use(router)
app.mount('#app')
